package utility;

public class Int2long {

	public static long ints2long(final int int1, final int int2) {
	    return ((long) int1 << Integer.SIZE | ((long) int2 << Integer.SIZE) >>> Integer.SIZE);
	}


	public static int[] long2ints(final long l) {
	    int[] ia = new int[2];
	    ia[1] = (int) l;
	    ia[0] = (int) (l >>> Integer.SIZE);
	    return ia;
	}
	
}
